package com.mes.cloud.dao;

import com.mes.cloud.api.dto.request.role.PositionTypePageListRequest;
import com.mes.cloud.entity.SysPositionTypeRole;
import com.mes.cloud.entity.vo.role.PositionTypeVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.ids.SelectByIdsMapper;

import java.util.List;

/**
 * 角色岗位类型关联表
 *
 * @author wxm
 * @email xiaomin.wu1@pactera.com
 * @version 2019-08-03 14:47:34
 */
public interface SysPositionTypeRoleDao extends SelectByIdsMapper<SysPositionTypeRole>, Mapper<SysPositionTypeRole>{
    List<PositionTypeVo> positionTypePageList(PositionTypePageListRequest positionTypePageListRequest);

    int batchInsert(List<SysPositionTypeRole> sysPositionTypeRoleList);

    int batchDelete(@Param("list") List<String> ids,
                    @Param("updateDateStr") String updateDateStr,
                    @Param("employeeNo") String employeeNo,
                    @Param("employeeName") String employeeName);
}
